home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _DAD898E0E7A64DE9A4817A32133E3AB5 < prev    next >
Encoding:
Text File  |  2004-07-20  |  7.9 KB  |  329 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $NORMALS
  6. // $NORMALSOPTIONSFILE
  7. // $SPECPOW
  8.  
  9.  
  10. shader()
  11. {
  12.     ShaderQuality(3)
  13.     pass()
  14.     {
  15.         //Lighting()
  16.         Pixelshader("CarL_CmCd_ps14.psh")
  17.         Vertexshader("CarL_CmCd_ps14.vsh")
  18.  
  19.         !include("__tex1.mtt")
  20.         !include("__Dirt.mtt")
  21. //        !include("__TerrainColormapVS.mtt")
  22.         !include("__TerrainColormapSmallVS.mtt")
  23.         !include("__CloudsVS.mtt")
  24. //        !include("__DynamicCubeMap.mtt")
  25.         !include("__CubeMap.mtt")
  26.         !include("__LightMask.mtt")        
  27.  
  28.         colorgen("tfactor", "user", 0,0,0, "user", 0,0,0) // RGB - lights state, A - dirt level
  29.     }
  30.     Cull("cw")
  31. }
  32.  
  33.  
  34. shader()
  35. {
  36.     ShaderQuality(2)
  37.     pass()
  38.     {
  39.         Pixelshader("CarBR_Cm_ps11.psh")
  40.         Vertexshader("CarBR_Cm_ps11.vsh")
  41.  
  42.         !include("__tex1.mtt")
  43.         !include("__Dirt.mtt")
  44.         !include("__TerrainColormapSmallVS.mtt")
  45. //        !include("__DynamicCubeMap.mtt")        
  46.         !include("__CubeMap.mtt")        
  47.  
  48.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  49.     }
  50.     pass()
  51.     {
  52.         Pixelshader("CarL_pass2_ps11.psh")
  53.         Vertexshader("CarL_pass2_ps11.vsh")
  54.  
  55.         !include("__tex1.mtt")
  56.         !include("__Dirt.mtt")
  57.         !include("__LightMask.mtt")
  58.  
  59.         colorgen("tfactor", "user", 0,0,0, "user", 0,0,0) // RGB - lights, A - dirt level
  60.         BlendFunc("src_alpha", "inv_src_alpha")
  61.     }
  62.     Cull("cw")
  63. }
  64.  
  65.  
  66. shader()
  67. {
  68.     ShaderQuality(1)
  69.     pass()
  70.     {
  71.         Pixelshader("CarBR_ps11.psh")
  72.         Vertexshader("CarBR_ps11.vsh")
  73.  
  74.         !include("__tex1.mtt")
  75.         !include("__Dirt.mtt")
  76.         !include("__TerrainColormapSmallVS.mtt")
  77.  
  78.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  79.     }
  80.     pass()
  81.     {
  82.         Pixelshader("CarL_pass2_ps11.psh")
  83.         Vertexshader("CarL_pass2_ps11.vsh")
  84.  
  85.         !include("__tex1.mtt")
  86.         !include("__Dirt.mtt")
  87.         !include("__LightMask.mtt")
  88.  
  89.         colorgen("tfactor", "user", 0,0,0, "user", 0,0,0) // RGB - lights, A - dirt level
  90.         BlendFunc("src_alpha", "inv_src_alpha")
  91.     }
  92.     Cull("cw")
  93. }
  94.  
  95. //=========================== GF2 ======================================
  96. shader()
  97. {
  98.     ShaderQuality(2)
  99.     pass()
  100.     {
  101.         Lighting()
  102.         tmu()
  103.         {
  104.             TexGen("planar")
  105.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  106.             texture()
  107.             {
  108.                 Image(%colortexturesmall)
  109.                 addressfunc("clamp", "clamp", "clamp")
  110.             }
  111.             ColorOp("mul_add", "texture_a", "current", "diffuse_a")
  112.             AlphaOp("arg1", "texture_a", "current", "current")
  113.         }
  114.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  115.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  116.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  117.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  118.         SpecularPow(0.0)
  119.                
  120.     }
  121.    
  122.     pass()
  123.     {
  124.         tmu()
  125.         {
  126.             Texture()
  127.             {
  128.                 Mapchannel(0)
  129.                 Image(LIGHTSMASKS)
  130.                 !include(LIGHTSMASKSOPTIONSFILE)
  131.             }
  132.             ColorOp("add", "tfactor_a", "texture", "current")
  133.         }
  134.  
  135.         tmu()
  136.         {
  137.             ColorOp("dot3", "tfactor", "current", "current")
  138.         }            
  139.         
  140.         tfactor(1, 1, 1, 0.5)
  141.         colorgen("tfactor", "user", 0,0,0, "none", 0,0,0) // RGB - lights        
  142.         BlendFunc("one", "one" )
  143.     }            
  144.     lightpass()
  145.     !include("spot_spotmap.mtt")
  146.     pass()
  147.     {
  148.         Lighting()
  149.         tmu()
  150.         {
  151.             Texture()
  152.             {
  153.                 Mapchannel(0)
  154.                 Image(DIRT_GF2)
  155.                 !include(DIRTOPTIONSFILE)
  156.             }
  157.             ColorOp("arg1", "tfactor", "current", "current")
  158.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  159.         }
  160.         tmu()
  161.         {
  162.             Texture()
  163.             {
  164.                 Mapchannel(0)
  165.                 Image(TEXTURE1)
  166.                 !include(TEX1OPTIONSFILE)
  167.             }
  168.             ColorOp("blend_current_alpha", "current", "texture", "current")
  169.         }
  170.  
  171.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  172.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  173.    
  174.         AmbientColor(0.0, 0.0, 0.0, 1.0)
  175.         DiffuseColor(0.0, 0.0, 0.0, 1.0)
  176.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  177.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  178.         SpecularPow(SPECPOW)                
  179.  
  180.         BlendFunc("zero", "src_color")
  181.     }
  182.     
  183.     Cull("cw")
  184. }
  185.  
  186. // -------------------------   dla kart bez dot3 
  187. shader()
  188. {
  189.     ShaderQuality(2)
  190.  
  191.     pass()
  192.     {
  193.         Lighting()
  194.         tmu()
  195.         {
  196.             TexGen("planar")
  197.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  198.             texture()
  199.             {
  200.                 Image(%colortexturesmall)
  201.                 addressfunc("clamp", "clamp", "clamp")
  202.             }
  203.             ColorOp("mul_add", "texture_a", "current", "diffuse_a")
  204.             AlphaOp("arg1", "texture_a", "current", "current")
  205.         }
  206.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  207.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  208.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  209.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  210.         SpecularPow(0.0)
  211.                
  212.     }
  213.     lightpass()
  214.     !include("spot_spotmap.mtt")
  215.  
  216.     pass()
  217.     {
  218.         Lighting()
  219.         tmu()
  220.         {
  221.             Texture()
  222.             {
  223.                 Mapchannel(0)
  224.                 Image(DIRT_GF2)
  225.                 !include(DIRTOPTIONSFILE)
  226.             }
  227.             ColorOp("arg1", "tfactor", "current", "current")
  228.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  229.         }
  230.         tmu()
  231.         {
  232.             Texture()
  233.             {
  234.                 Mapchannel(0)
  235.                 Image(TEXTURE1)
  236.                 !include(TEX1OPTIONSFILE)
  237.             }
  238.             ColorOp("blend_current_alpha", "current", "texture", "current")
  239.         }
  240.  
  241.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  242.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  243.    
  244.         AmbientColor(0.0, 0.0, 0.0, 1.0)
  245.         DiffuseColor(0.0, 0.0, 0.0, 1.0)
  246.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  247.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  248.         SpecularPow(SPECPOW)                
  249.  
  250.         BlendFunc("zero", "src_color")
  251.     }
  252.  
  253.     Cull("cw")
  254. }
  255.  
  256. shader()
  257. {
  258.     ShaderQuality(1)
  259.     pass()
  260.     {
  261.         !include("__tex1.mtt")
  262.     }
  263.     pass()
  264.     {
  265.         tmu()
  266.         {
  267.             Texture()
  268.             {
  269.                 Mapchannel(0)
  270.                 Image(LIGHTSMASKS)
  271.                 !include(LIGHTSMASKSOPTIONSFILE)
  272.             }
  273.             ColorOp("add", "tfactor_a", "texture", "current")
  274.         }
  275.  
  276.         tmu()
  277.         {
  278.             ColorOp("dot3", "tfactor", "current", "current")
  279.         }            
  280.         
  281.         tfactor(1, 1, 1, 0.5)
  282.         colorgen("tfactor", "user", 0,0,0, "none", 0,0,0) // RGB - lights        
  283.         BlendFunc("zero", "src_color" )
  284.     }
  285.     pass()
  286.     {
  287.         Lighting()
  288.         !include("__tex1.mtt")
  289.         !include("__LightningColorsGF2.mtt")          
  290.         BlendFunc("one", "one" )
  291.     }
  292.         
  293.     lightpass()
  294.     !include("spot_spotmap.mtt")    
  295.  
  296.     Cull("cw")
  297. }
  298. //=======================================================
  299. /*
  300. shader()
  301. {
  302.     ShaderQuality(0)
  303.     pass()
  304.     {
  305.         Lighting()
  306.         Pixelshader("Common_specular.psh")
  307.         Vertexshader("Common_specular.vsh")
  308.         !include("__tex1.mtt")
  309.     }
  310.     Cull("cw")
  311. }
  312. */
  313. shader()
  314. {
  315.     ShaderQuality(0)
  316.     pass()
  317.     {
  318.         Lighting()
  319.         !include("__tex1.mtt")
  320.         !include("__LightningColorsGF2.mtt")          
  321.     }
  322. //    lightpass()
  323. //    !include("spot_spotmap.mtt")    
  324.  
  325.     Cull("cw")
  326. }
  327.  
  328.  
  329.